package com.ym.b2b.user.service;

import org.springframework.dao.DataAccessException;

import com.ym.b2b.commons.exception.BaseException;
import com.ym.b2b.user.sqlbean.EmSUserFavorites;
import com.zc.commons.base.Page;
import com.zc.commons.base.Result;

public interface UserFavoritesService {

    public Page<EmSUserFavorites> searchPageUserProductFavorites(EmSUserFavorites emSUserFavorites,
                                                                 Page<EmSUserFavorites> page) throws BaseException;

    public Long searchUserProductFavoritesNum(EmSUserFavorites emSUserFavorites) throws BaseException;

    public Result deleteUserFavorites(Long favoritesId) throws BaseException;

    public Result addUserFavorites(EmSUserFavorites emSUserFavorites) throws DataAccessException;
}
